#!/bin/bash

# Setup the needed environment
export LD_LIBRARY_PATH=@MY_LD_LIBRARY_PATH@:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=@MY_LD_LIBRARY_PATH@:$DYLD_LIBRARY_PATH
export PATH=@SIMPATH@/bin:$PATH:@Geant4_DIR@
export ROOTSYS=@ROOTSYS@
export ROOTEXE=@ROOT_INSTALL_DIR@/bin/root.exe
export ROOT_INCLUDE_PATH="@GEANT3_INCLUDE_DIR@:@MY_ROOT_INCLUDE_PATH@"
export VMCWORKDIR=@VMCWORKDIR@
export GEANT4VMC_MACRO_DIR=@GEANT4VMC_MACRO_DIR@
export USE_VGM=1
export BOOST=@Boost_Avail@
export G4LEDATA="@G4LEDATA@"
export G4LEVELGAMMADATA="@G4LEVELGAMMADATA@"
export G4NeutronHPCrossSections="@G4NeutronHPCrossSections@"
export G4NEUTRONHPDATA="@G4NeutronHPCrossSections@"
export G4NEUTRONXSDATA="@G4NEUTRONXSDATA@"
export G4PIIDATA="@G4PIIDATA@"
export G4RADIOACTIVEDATA="@G4RADIOACTIVEDATA@"
export G4REALSURFACEDATA="@G4REALSURFACEDATA@"
export G4SAIDXSDATA="@G4SAIDXSDATA@"
export G4ENSDFSTATEDATA="@G4ENSDFSTATEDATA@"
export G3SYS="@GEANT3_SYSTEM_DIR@"
export PYTHIA8DATA="@PYTHIA8DATA@"
if [ -e @Geant4_DIR@/env.sh ]; then
  . @Geant4_DIR@/env.sh
fi

cd @new_path@

source  @my_script_name@
